<!--
 * @Descripttion: 
 * @Version: 
 * @Author: gaohj
 * @Date: 2022-11-01 17:56:51
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-11-01 18:00:24
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // open('地址')
        // 打开一个窗口请求新的地址 
        // 地址一定要加上协议  http:// 
        // 或者 https://

        // close()
        // 关闭当前窗口
    </script>
    <button onclick="window.open('http:\/\/www.baidu.com')">打开</button>
    <button onclick="window.close()">关闭</button>
</body>
</html>